home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 2.1 KB | 87 lines | [TEXT/MPS ] |
- # Full build script for Symantec 68K
- #
- # SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]
- #
- # [Debug|Release] : debug or release build. Debug by default
- # [Clean] : Will delete all cpp.o files
- # [ODFLibrary] : Will only build the ODFLibrary
- # [NoExamples] : Will not build the ODF examples
- #
- # This script assumes that you have placed UserStartup•ODF in your MPW folder.
-
- if {ODF} == ""
- Beep
- Beep
- Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)."
- Echo "### Please do so before continuing. Those files are located in the 'MPW-ToolServer Additions'"
- Echo "### folder inside the ODFDev folder. Don't forget to relaunch MPW (or ToolServer)."
- exit
- end
-
- Set TheBuild ""
- Set Clean 0
- Set Examples 1
- Set StaticLib 1
-
- For item in {"Parameters"}
- if {item} == Debug
- Set TheBuild "Debug"
- else if {item} == debug
- Set TheBuild "Debug"
- else if {item} == Release
- Set TheBuild Release
- else if {item} == release
- Set TheBuild Release
- else if {item} == Clean
- Set Clean 1
- else if {item} == clean
- Set Clean 1
- else if {item} == ODFLibrary
- Set StaticLib 0
- Set Examples 0
- else if {item} == odflibrary
- Set StaticLib 0
- Set Examples 0
- else if {item} == NoExamples
- Set Examples 0
- else if {item} == noexamples
- Set Examples 0
- else if {item} == Noexamples
- Set Examples 0
- else
- Echo "SC68KBuildAll [Debug|Release] [Clean] [NoExamples]"
- exit
- end
- End
-
- if {TheBuild} == ""
- Set TheBuild Debug
- end
-
- Set Exit 0
- if {Clean} == 1
- Echo "Cleaning object files"
- delete -y "{ODF}SL68K{TheBuild}:Obj:"≈
- delete -y "{ODF}SC68K{TheBuild}:Obj:"≈
- if {Examples} == 1
- For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
- delete -y "{ODFDev}{example}:SC68K{TheBuild}:Obj:"≈
- End
- End
- End
- Set Exit 1
-
- # ----- Build ODF Shared Library
- "{ODF}SL68K{TheBuild}:Build"
-
- # ----- Build ODF Static Libraries
- if {StaticLib} == 1
- "{ODF}SC68K{TheBuild}:Build"
- End
-
- # ----- Build ODF Samples
- if {Examples} == 1
- For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
- "{ODFDev}{example}:SC68K{TheBuild}:Build"
- End
- End